package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ChatAdminExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ChatAdminExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCanoIsNull() {
            addCriterion("cano is null");
            return (Criteria) this;
        }

        public Criteria andCanoIsNotNull() {
            addCriterion("cano is not null");
            return (Criteria) this;
        }

        public Criteria andCanoEqualTo(String value) {
            addCriterion("cano =", value, "cano");
            return (Criteria) this;
        }

        public Criteria andCanoNotEqualTo(String value) {
            addCriterion("cano <>", value, "cano");
            return (Criteria) this;
        }

        public Criteria andCanoGreaterThan(String value) {
            addCriterion("cano >", value, "cano");
            return (Criteria) this;
        }

        public Criteria andCanoGreaterThanOrEqualTo(String value) {
            addCriterion("cano >=", value, "cano");
            return (Criteria) this;
        }

        public Criteria andCanoLessThan(String value) {
            addCriterion("cano <", value, "cano");
            return (Criteria) this;
        }

        public Criteria andCanoLessThanOrEqualTo(String value) {
            addCriterion("cano <=", value, "cano");
            return (Criteria) this;
        }

        public Criteria andCanoLike(String value) {
            addCriterion("cano like", value, "cano");
            return (Criteria) this;
        }

        public Criteria andCanoNotLike(String value) {
            addCriterion("cano not like", value, "cano");
            return (Criteria) this;
        }

        public Criteria andCanoIn(List<String> values) {
            addCriterion("cano in", values, "cano");
            return (Criteria) this;
        }

        public Criteria andCanoNotIn(List<String> values) {
            addCriterion("cano not in", values, "cano");
            return (Criteria) this;
        }

        public Criteria andCanoBetween(String value1, String value2) {
            addCriterion("cano between", value1, value2, "cano");
            return (Criteria) this;
        }

        public Criteria andCanoNotBetween(String value1, String value2) {
            addCriterion("cano not between", value1, value2, "cano");
            return (Criteria) this;
        }

        public Criteria andCanameIsNull() {
            addCriterion("caname is null");
            return (Criteria) this;
        }

        public Criteria andCanameIsNotNull() {
            addCriterion("caname is not null");
            return (Criteria) this;
        }

        public Criteria andCanameEqualTo(String value) {
            addCriterion("caname =", value, "caname");
            return (Criteria) this;
        }

        public Criteria andCanameNotEqualTo(String value) {
            addCriterion("caname <>", value, "caname");
            return (Criteria) this;
        }

        public Criteria andCanameGreaterThan(String value) {
            addCriterion("caname >", value, "caname");
            return (Criteria) this;
        }

        public Criteria andCanameGreaterThanOrEqualTo(String value) {
            addCriterion("caname >=", value, "caname");
            return (Criteria) this;
        }

        public Criteria andCanameLessThan(String value) {
            addCriterion("caname <", value, "caname");
            return (Criteria) this;
        }

        public Criteria andCanameLessThanOrEqualTo(String value) {
            addCriterion("caname <=", value, "caname");
            return (Criteria) this;
        }

        public Criteria andCanameLike(String value) {
            addCriterion("caname like", value, "caname");
            return (Criteria) this;
        }

        public Criteria andCanameNotLike(String value) {
            addCriterion("caname not like", value, "caname");
            return (Criteria) this;
        }

        public Criteria andCanameIn(List<String> values) {
            addCriterion("caname in", values, "caname");
            return (Criteria) this;
        }

        public Criteria andCanameNotIn(List<String> values) {
            addCriterion("caname not in", values, "caname");
            return (Criteria) this;
        }

        public Criteria andCanameBetween(String value1, String value2) {
            addCriterion("caname between", value1, value2, "caname");
            return (Criteria) this;
        }

        public Criteria andCanameNotBetween(String value1, String value2) {
            addCriterion("caname not between", value1, value2, "caname");
            return (Criteria) this;
        }

        public Criteria andCapwdIsNull() {
            addCriterion("capwd is null");
            return (Criteria) this;
        }

        public Criteria andCapwdIsNotNull() {
            addCriterion("capwd is not null");
            return (Criteria) this;
        }

        public Criteria andCapwdEqualTo(String value) {
            addCriterion("capwd =", value, "capwd");
            return (Criteria) this;
        }

        public Criteria andCapwdNotEqualTo(String value) {
            addCriterion("capwd <>", value, "capwd");
            return (Criteria) this;
        }

        public Criteria andCapwdGreaterThan(String value) {
            addCriterion("capwd >", value, "capwd");
            return (Criteria) this;
        }

        public Criteria andCapwdGreaterThanOrEqualTo(String value) {
            addCriterion("capwd >=", value, "capwd");
            return (Criteria) this;
        }

        public Criteria andCapwdLessThan(String value) {
            addCriterion("capwd <", value, "capwd");
            return (Criteria) this;
        }

        public Criteria andCapwdLessThanOrEqualTo(String value) {
            addCriterion("capwd <=", value, "capwd");
            return (Criteria) this;
        }

        public Criteria andCapwdLike(String value) {
            addCriterion("capwd like", value, "capwd");
            return (Criteria) this;
        }

        public Criteria andCapwdNotLike(String value) {
            addCriterion("capwd not like", value, "capwd");
            return (Criteria) this;
        }

        public Criteria andCapwdIn(List<String> values) {
            addCriterion("capwd in", values, "capwd");
            return (Criteria) this;
        }

        public Criteria andCapwdNotIn(List<String> values) {
            addCriterion("capwd not in", values, "capwd");
            return (Criteria) this;
        }

        public Criteria andCapwdBetween(String value1, String value2) {
            addCriterion("capwd between", value1, value2, "capwd");
            return (Criteria) this;
        }

        public Criteria andCapwdNotBetween(String value1, String value2) {
            addCriterion("capwd not between", value1, value2, "capwd");
            return (Criteria) this;
        }

        public Criteria andSaltIsNull() {
            addCriterion("salt is null");
            return (Criteria) this;
        }

        public Criteria andSaltIsNotNull() {
            addCriterion("salt is not null");
            return (Criteria) this;
        }

        public Criteria andSaltEqualTo(String value) {
            addCriterion("salt =", value, "salt");
            return (Criteria) this;
        }

        public Criteria andSaltNotEqualTo(String value) {
            addCriterion("salt <>", value, "salt");
            return (Criteria) this;
        }

        public Criteria andSaltGreaterThan(String value) {
            addCriterion("salt >", value, "salt");
            return (Criteria) this;
        }

        public Criteria andSaltGreaterThanOrEqualTo(String value) {
            addCriterion("salt >=", value, "salt");
            return (Criteria) this;
        }

        public Criteria andSaltLessThan(String value) {
            addCriterion("salt <", value, "salt");
            return (Criteria) this;
        }

        public Criteria andSaltLessThanOrEqualTo(String value) {
            addCriterion("salt <=", value, "salt");
            return (Criteria) this;
        }

        public Criteria andSaltLike(String value) {
            addCriterion("salt like", value, "salt");
            return (Criteria) this;
        }

        public Criteria andSaltNotLike(String value) {
            addCriterion("salt not like", value, "salt");
            return (Criteria) this;
        }

        public Criteria andSaltIn(List<String> values) {
            addCriterion("salt in", values, "salt");
            return (Criteria) this;
        }

        public Criteria andSaltNotIn(List<String> values) {
            addCriterion("salt not in", values, "salt");
            return (Criteria) this;
        }

        public Criteria andSaltBetween(String value1, String value2) {
            addCriterion("salt between", value1, value2, "salt");
            return (Criteria) this;
        }

        public Criteria andSaltNotBetween(String value1, String value2) {
            addCriterion("salt not between", value1, value2, "salt");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIsNull() {
            addCriterion("isDelete is null");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIsNotNull() {
            addCriterion("isDelete is not null");
            return (Criteria) this;
        }

        public Criteria andIsdeleteEqualTo(Integer value) {
            addCriterion("isDelete =", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotEqualTo(Integer value) {
            addCriterion("isDelete <>", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteGreaterThan(Integer value) {
            addCriterion("isDelete >", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("isDelete >=", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteLessThan(Integer value) {
            addCriterion("isDelete <", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteLessThanOrEqualTo(Integer value) {
            addCriterion("isDelete <=", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIn(List<Integer> values) {
            addCriterion("isDelete in", values, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotIn(List<Integer> values) {
            addCriterion("isDelete not in", values, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteBetween(Integer value1, Integer value2) {
            addCriterion("isDelete between", value1, value2, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotBetween(Integer value1, Integer value2) {
            addCriterion("isDelete not between", value1, value2, "isdelete");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(Date value) {
            addCriterion("createDate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(Date value) {
            addCriterion("createDate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(Date value) {
            addCriterion("createDate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("createDate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(Date value) {
            addCriterion("createDate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("createDate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<Date> values) {
            addCriterion("createDate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<Date> values) {
            addCriterion("createDate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(Date value1, Date value2) {
            addCriterion("createDate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("createDate not between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCaimgIsNull() {
            addCriterion("caimg is null");
            return (Criteria) this;
        }

        public Criteria andCaimgIsNotNull() {
            addCriterion("caimg is not null");
            return (Criteria) this;
        }

        public Criteria andCaimgEqualTo(String value) {
            addCriterion("caimg =", value, "caimg");
            return (Criteria) this;
        }

        public Criteria andCaimgNotEqualTo(String value) {
            addCriterion("caimg <>", value, "caimg");
            return (Criteria) this;
        }

        public Criteria andCaimgGreaterThan(String value) {
            addCriterion("caimg >", value, "caimg");
            return (Criteria) this;
        }

        public Criteria andCaimgGreaterThanOrEqualTo(String value) {
            addCriterion("caimg >=", value, "caimg");
            return (Criteria) this;
        }

        public Criteria andCaimgLessThan(String value) {
            addCriterion("caimg <", value, "caimg");
            return (Criteria) this;
        }

        public Criteria andCaimgLessThanOrEqualTo(String value) {
            addCriterion("caimg <=", value, "caimg");
            return (Criteria) this;
        }

        public Criteria andCaimgLike(String value) {
            addCriterion("caimg like", value, "caimg");
            return (Criteria) this;
        }

        public Criteria andCaimgNotLike(String value) {
            addCriterion("caimg not like", value, "caimg");
            return (Criteria) this;
        }

        public Criteria andCaimgIn(List<String> values) {
            addCriterion("caimg in", values, "caimg");
            return (Criteria) this;
        }

        public Criteria andCaimgNotIn(List<String> values) {
            addCriterion("caimg not in", values, "caimg");
            return (Criteria) this;
        }

        public Criteria andCaimgBetween(String value1, String value2) {
            addCriterion("caimg between", value1, value2, "caimg");
            return (Criteria) this;
        }

        public Criteria andCaimgNotBetween(String value1, String value2) {
            addCriterion("caimg not between", value1, value2, "caimg");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}